package vars

import (
	"gitee.com/csingo/cHelper"
	"gitee.com/csingo/cServer"
)

var ServerConfig = &cServer.ServerConf{
	HttpServer: &cServer.ServerConf_HttpServer{
		Debug:           cHelper.EnvToBool("SATIS_HTTP_DEBUG", true),
		Enable:          cHelper.EnvToBool("SATIS_HTTP_ENABLE", true),
		Port:            cHelper.EnvToInt("SATIS_HTTP_PORT", 80),
		ReadTimeout:     100,
		WriteTimeout:    100,
		ExitTimeout:     600,
		MaxHeaderBytes:  20,
		BasicAuthEnable: true,
		BasicAuthUsers: map[string]string{
			cHelper.EnvToString("SATIS_AUTH_USERNAME", "admin"): cHelper.EnvToString("SATIS_AUTH_PASSWORD", "admin123!@#"),
		},
	},
}
